package com.jiangfeixiang.springbootblog.controller.admin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: 姜飞祥
 * @Description: 管理后台首页
 * @Date: Create in 2019/1/20/0020 11:27
 * @param: $params$
 * @return: $returns$
 */
@Controller
@RequestMapping("/admin")
public class IndexController {
    private static final Logger logger = LoggerFactory.getLogger(IndexController.class);

    /**
     * 后台首页
     * @return
     */
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(){
        logger.info("登录首页成功");
        return "admin/admin-index";
    }
}
